#include "ql_oe.h"


static void ql_fota_cb_func(E_QUECFOTA_PROCESS_STATE_T state, void *contextPtr) {
	fprintf(stderr, "%s: quecfota state [%d]\n", __FUNCTION__, state);
}

int main(int argc, char* argv[])  
{
	int ret = RES_OK;
	
	ql_add_quecfota_callback(ql_fota_cb_func, NULL);

	ret = ql_start_quecfota("https://southbound.quectel.com");
	if (RES_OK == ret)
	{
		fprintf(stderr, "%s: quecfota start success\n", __FUNCTION__);
	}
	else
	{
		fprintf(stderr, "%s: quecfota start failed\n", __FUNCTION__);
	}
	getchar();//wait callback
	return 0;  
}
